﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class ClassesSectionSchool
	{
		public ClassesSectionSchool()
		{
			m_RID = 0;
			m_ItemID = 0;
			m_SchoolTestID = 0;
			m_ClassID = 0;
			m_Dirty = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region ItemID
		
		private int m_ItemID;
		
		public int ItemID
		{
			get { return m_ItemID; }
			set { m_ItemID = value; }
		}
		
		#endregion
		
		#region SchoolTestID
		
		private int m_SchoolTestID;
		
		public int SchoolTestID
		{
			get { return m_SchoolTestID; }
			set { m_SchoolTestID = value; }
		}
		
		#endregion
		
		#region ClassID
		
		private int m_ClassID;
		
		public int ClassID
		{
			get { return m_ClassID; }
			set { m_ClassID = value; }
		}
		
		#endregion
		
		#region InNum
		
		private int m_InNum;
		
		public int InNum
		{
			get { return m_InNum; }
			set { m_InNum = value; }
		}
		
		#endregion
		
		#region OverNum
		
		private int m_OverNum;
		
		public int OverNum
		{
			get { return m_OverNum; }
			set { m_OverNum = value; }
		}
		
		#endregion
		
		#region Dirty
		
		private short m_Dirty;
		
		public short Dirty
		{
			get { return m_Dirty; }
			set { m_Dirty = value; }
		}
		
		#endregion


        #region SchoolMark

        private string m_SchoolMark;

        public string SchoolMark
        {
            get { return m_SchoolMark; }
            set { m_SchoolMark = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			ClassesSectionSchool castObj = (ClassesSectionSchool) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 5;
			hash = hash * 5
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}